﻿' ////////////////////////////////////////////////////////////////////////////////////////////////////////
' // This is generated code. 
' ////////////////////////////////////////////////////////////////////////////////////////////////////////
' // Code is generated using LLBLGen Pro version: 2.6
' // Code is generated on: lundi 28 septembre 2009 23:24:54
' // Code is generated using templates: SD.TemplateBindings.SharedTemplates.NET20
' // Templates vendor: Solutions Design.
' // Templates version: 
' ////////////////////////////////////////////////////////////////////////////////////////////////////////
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports Aricie.DNN.Services.Url.FriendlyUrl
Imports Aricie.DNN.Services.Url.FriendlyUrl.FactoryClasses
Imports Aricie.DNN.Services.Url.FriendlyUrl.HelperClasses
Imports SD.LLBLGen.Pro.ORMSupportClasses

Namespace Aricie.DNN.Services.Url.FriendlyUrl.RelationClasses
	''' <summary>Implements the Shared Relations variant for the entity: FupUrlMapping.</summary>
	Public Class FupUrlMappingRelations
		''' <summary>CTor</summary>
		Public Sub New()
		End Sub

		''' <summary>Gets all relations of the FupUrlMappingEntity as a list of IEntityRelation objects.</summary>
		''' <returns>a list of IEntityRelation objects</returns>
		Public Overridable Function GetAllRelations() As List(Of IEntityRelation)
			Dim toReturn As List(Of IEntityRelation)= New List(Of IEntityRelation)()
			toReturn.Add(Me.FupPatternMappingEntityUsingFriendlyUrl)


			Return toReturn
		End Function

#Region "Class Property Declarations"

		''' <summary>Returns a new IEntityRelation Object, between FupUrlMappingEntity and FupPatternMappingEntity over the 1:n relation they have, using the relation between the fields:
		''' FupUrlMapping.FriendlyUrl - FupPatternMapping.FriendlyUrl
		''' </summary>
		Public Overridable ReadOnly Property FupPatternMappingEntityUsingFriendlyUrl() As IEntityRelation
			Get
				Dim relation As IEntityRelation = New EntityRelation(SD.LLBLGen.Pro.ORMSupportClasses.RelationType.OneToMany, "FupPatternMapping", True)
				relation.AddEntityFieldPair(FupUrlMappingFields.FriendlyUrl, FupPatternMappingFields.FriendlyUrl)
				relation.InheritanceInfoPkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("FupUrlMappingEntity", True)
				relation.InheritanceInfoFkSideEntity = InheritanceInfoProviderSingleton.GetInstance().GetInheritanceInfo("FupPatternMappingEntity", False)
				Return relation
			End Get
		End Property


		
		''' <summary>stub, not used In this entity, only For TargetPerEntity entities.</summary>
		Public Overridable Function GetSubTypeRelation(subTypeEntityName As String) As IEntityRelation 
			Return Nothing
		End Function
		''' <summary>stub, not used In this entity, only For TargetPerEntity entities.</summary>
		Public Overridable Function GetSuperTypeRelation() As IEntityRelation 
			Return Nothing
		End Function

#End Region

#Region "Included Code"

#End Region
	End Class
End Namespace
